﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Templates/Template.Master" Inherits="System.Web.Mvc.ViewPage<TaxiCaosWeb.Models.Cliente>" %>

<asp:Content ID="Content3" ContentPlaceHolderID="title" runat="server">
	Registrar Cliente
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="menuContent" runat="server">
<%
    string[] menuArray = { "0", "0", "0", "0", "0", "1", "0", "0" };
    Session["menuArray"] = menuArray;
%>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="body" runat="server">
   <script language="javascript" type="text/javascript" src="../../Content/js/jquery-1.7.2.js"></script>
    <script language="javascript" type="text/javascript" src="../../Content/js/jquery.validate.js"></script>

<script language="javascript">
    $(document).ready(function () {
        $('#FecNacimiento').datepicker({ dateFormat: "dd/mm/yy" });
    });
</script>

    <div class="nosotros">
        <h2> Actualizar Datos</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
         <div class="c_left">
            <div class="editor-label" style="margin-top:15px;">
             <label>Usuario</label>
            </div>
            <div class="editor-field" style="margin-top:15px;">
                <%: Html.TextBoxFor(model => model.ULogin)%>
                <%: Html.ValidationMessageFor(model => model.ULogin)%>
            </div>
            <div class="editor-label" style="margin-top:15px;">
             <label>Password</label>
            </div>
            <div class="editor-field" style="margin-top:15px;">
                <%: Html.TextBoxFor(model => model.Password)%>
                <%: Html.ValidationMessageFor(model => model.Password)%>
            </div>
            <div class="editor-label" style="margin-top:15px;">
            <label>Nombres</label> 
            </div>           
            <div class="editor-field" style="margin-top:15px;">
                <%: Html.TextBoxFor(model => model.Nombres)%>
                <%: Html.ValidationMessageFor(model => model.Nombres)%>
            </div>
            <div class="editor-label" style="margin-top:15px;">
            <label>Apellido Paterno</label>
            </div>
            <div class="editor-field" >
                <%: Html.TextBoxFor(model => model.Apellidos)%>
                <%: Html.ValidationMessageFor(model => model.Apellidos)%>
            </div>
            <div class="editor-label" style="margin-top:15px;">
            <label>Razon Social</label> 
            </div>           
            <div class="editor-field" style="margin-top:15px;">
                <%: Html.TextBoxFor(model => model.RazonSocial)%>
                <%: Html.ValidationMessageFor(model => model.RazonSocial)%>
            </div>
            <div class="editor-label" style="margin-top:15px;">
             <label>Tipo Documento</label> 
            </div>
             <div class="editor-field" style="margin-top:15px;">
                <%= Html.DropDownList("TipoDocumento",
                                                        new SelectList((IEnumerable)ViewData["TiposDocumentos"], "IdCatalogo", "Descripcion"))%>
                <%: Html.ValidationMessageFor(model => model.TipoDocumento)%>
            </div>
            <div class="editor-label" style="margin-top:15px;">
             <label>Nro Documento</label>
            </div>
            <div class="editor-field" style="margin-top:15px;">
                <%: Html.TextBoxFor(model => model.NumeroDocumento)%>
                <%: Html.ValidationMessageFor(model => model.NumeroDocumento)%>
            </div>
            
         </div>
          <div class="c_right">
            <div class="editor-label" style="margin-top:15px;">
             <label>Correo Electronico</label>
            </div>
            <div class="editor-field" style="margin-top:15px;">
                <%: Html.TextBoxFor(model => model.Email)%>
                <%: Html.ValidationMessageFor(model => model.Email)%>
            </div>
            <div class="editor-label" style="margin-top:15px;">
             <label>Dirección</label>
            </div>
            <div class="editor-field" style="margin-top:15px;">
                <%: Html.TextBoxFor(model => model.Direccion)%>
                <%: Html.ValidationMessageFor(model => model.Direccion)%>
            </div>
            <div class="editor-label" style="margin-top:15px;">
             <label>Telefono</label>
            </div>
             <div class="editor-field" style="margin-top:15px;">
                <%: Html.TextBoxFor(model => model.Telefono) %>
                <%: Html.ValidationMessageFor(model => model.Telefono) %>
            </div>
            <div class="editor-label" style="margin-top:15px;">
            <label>Fecha Nacimiento</label>
            </div>
             <div class="editor-field" style="margin-top:15px;">
                <%= Html.TextBox("FecNacimiento")%>
                <%: Html.ValidationMessageFor(model => model.FecNacimiento)%>
            </div>
            
          </div>
       <div>
             <br />
            <input type="submit" value="Registrarse" style="background-color: steelblue; color: white; font-weight: bold;margin-top: 5px;"/>
      </div>   
       <% } %>

      
    </div>

</asp:Content>


